package org.hxyjs.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.hxyjs.entity.ChatRoom;
import org.hxyjs.entity.ChatRoomExample;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface ChatRoomMapper {
    long countByExample(ChatRoomExample example);

    int deleteByExample(ChatRoomExample example);

    int deleteByPrimaryKey(String roomNo);

    int insert(ChatRoom record);

    int insertSelective(ChatRoom record);

    List<ChatRoom> selectByExample(ChatRoomExample example);

    String getMaxRoomNo();

    List<ChatRoom> getChatRoomByPage(Map<String, Object> map);

    ChatRoom selectByPrimaryKey(String roomNo);

    int updateByExampleSelective(@Param("record") ChatRoom record, @Param("example") ChatRoomExample example);

    int updateByExample(@Param("record") ChatRoom record, @Param("example") ChatRoomExample example);

    int updateByPrimaryKeySelective(ChatRoom record);

    int updateByPrimaryKey(ChatRoom record);
}